﻿<s:ScatterViewItem x:Class="eGrid_App.FeatureInfoTip"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:s="http://schemas.microsoft.com/surface/2008"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:src="clr-namespace:eGrid_App"    
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Background="Transparent"
                   CanMove="False" CanRotate="True" CanScale="False">

    <s:ScatterViewItem.Resources>
        <ObjectDataProvider x:Key="bookmark"
                            ObjectType="{x:Type src:Bookmark}" >
        </ObjectDataProvider>
    </s:ScatterViewItem.Resources>
    
    <Grid>
        <Grid.Resources>
            <ImageBrush x:Key="ShowMap" Stretch="Fill" ImageSource="Resources/Buttons/ShowMap.png"/>
        </Grid.Resources>

        
        <Border CornerRadius="10" BorderBrush="#FF222957" BorderThickness="3">
            <Border.Background>
                <LinearGradientBrush>
                    <GradientStop Color="#FFD1DFF2"/>
                    <GradientStop Color="#FF0088FF" Offset="0.946"/>
                </LinearGradientBrush>
            </Border.Background>
            <Border.Effect>
                <DropShadowEffect ShadowDepth="1" BlurRadius="25" Direction="300" />
            </Border.Effect>
            
            
            <StackPanel Margin="7" Orientation="Vertical">
                
                <StackPanel Orientation="Horizontal">
                    
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="125"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                
                    
                    <TextBlock Grid.Row="0" Grid.Column="0" Text="Bookmark ID: " FontWeight="Bold" Foreground="#FF0F274E" FontSize="13" 
                               VerticalAlignment="Center"/>
                    <TextBlock Grid.Row="0" Grid.Column="1" Name="TT_Num" HorizontalAlignment="Left" Width="150" VerticalAlignment="Center"/>
                        <s:SurfaceButton Grid.Row="0" Grid.Column="2" x:Name="CloseButton" Background="White" Padding="5" Width="20" 
                                     Margin="0,0,-100,0"
                                     Click="CloseButton_Click" TouchDown="CloseButton_Click" >
                            <Image Source="Resources\Buttons\Delete.png"/>
                        </s:SurfaceButton>
                    </Grid>
                </StackPanel>
                
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Priority: " FontWeight="Bold" Foreground="#FF0F274E" FontSize="15"
                               VerticalAlignment="Center" />
                    
                    <Border BorderBrush="{x:Null}" Height="35">
                        <TextBlock Name="TT_SEV" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Stretch"
                                   Text="n/a" FontSize="18" FontWeight="DemiBold" Margin="3" TextAlignment="Center"
                                   Foreground="Black" Width="60" Height="40"/>
                    </Border>

                    <s:SurfaceSlider Name="SS_SEV" Ticks="1, 2, 3" FlowDirection="LeftToRight" TickFrequency="1" IsSnapToTickEnabled="True" Width="150" 
                                     Minimum="1" Maximum="3" TickPlacement="BottomRight" Margin="0,0,10,0"
                                     ValueChanged="SS_SEV_ValueChanged" Visibility="Hidden"/>

                </StackPanel>

                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Location: " FontWeight="Bold" Foreground="#FF0F274E" FontSize="15" 
                               VerticalAlignment="Center" />
                    <TextBox Name="TT_LOC" Width="200" IsEnabled="False" />
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Description: " FontWeight="Bold" Foreground="#FF0F274E" FontSize="15" 
                               VerticalAlignment="Center" />
                    <TextBox Name="TT_DES" Width="180" Height="50" IsEnabled="False" />
                </StackPanel>

                <s:SurfaceButton x:Name="ShowMapButton" Background="White" Height="15" Content="Show Map" Margin="2" Click="ShowMapButton_Click" TouchDown="ShowMapButton_Click" />
                <s:SurfaceButton x:Name="EditButton" Background="Aqua" Height="15" Content="Edit" Margin="2" Click="EditButton_Click" TouchDown="EditButton_Click" />
                
                <!--Fill="#FFD1DFF2"-->
            </StackPanel>
        </Border>
    </Grid>
</s:ScatterViewItem>
